dict1 = {'name':"suki",'name':"tiki"}

print(dict1)  # {'name':'tiki'}

dict1 = {'name':'suki','age':99,'address':'shanghai'}
# 使用内置方法：items()
for key,value in dict1.items():
   print("当前的key是：%s，当前的value值是%s"%(key,value))


# 获取字典的所有键值对
dict1 = {'name':"李四",'age':99,'address':"沈阳"}

print(dict1.items())  # dict_items([('name','李四'),('age',99),('address','沈阳')])


dict1 = {"name":"suki",'age':19}

# 修改字典
dict1['name'] = '张三'
print(dict1)  # {"name":"张三","age":19}

# 新增一个key、value
dict1['address'] = '辽宁沈阳'
print(dict1) # {"name":"张三","age":19,"address","辽宁沈阳"}